<div class="container-fluid">

    <!-- Title -->
    <div class="row heading-bg bg-green">
        <div class="col-lg-3 col-md-4 col-sm-4 col-xs-12">
          <h5 class="txt-light"><{if $gvar.fget.t=='readyTicket'}>待开发票<{else}>已开发票<{/if}></h5>
        </div>
        <!-- Breadcrumb -->
        <div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
          <ol class="breadcrumb">
            <li><a href="index.html">渠道中心</a></li>
            <li><a href="data-table.html#"><span>发票管理</span></a></li>
            <li class="active"><span><{if $gvar.fget.t=='readyTicket'}>待开发票<{else}>已开发票<{/if}></span></li>
          </ol>
        </div>
        <!-- /Breadcrumb -->
    </div>
    <!-- /Title -->
    
    <!-- Row -->
    
    
    
    
    
    
    
    <div class="row">
        <div class="col-sm-12">
            <div class="panel panel-default card-view">
                <div class="panel-heading">
                    <div class="pull-left">
                        <h6 class="panel-title txt-dark">发票列表</h6>
                    </div>
                    <div class="clearfix"></div>
                </div>
                <div class="panel-wrapper collapse in">
                    <div class="panel-body">
                        <div class="table-wrap">
                            <div class="table-responsive">
                                <table id="datable_1" class="table table-hover display  pb-30" >
                                    <thead>
                                        <tr>
                                            <th>商户名称</th>
                                            <th>发票编号</th>
                                            <th>发票金额</th>
                                            <th>创建时间</th>
                                            <th>状态</th>
                                            <th>操作</th>
                                           
                                        </tr>
                                    </thead>
                                   <!-- <tfoot>
                                        <tr>
                                            <th>Name</th>
                                            <th>Position</th>
                                            <th>Office</th>
                                            <th>Age</th>
                                            <th>Start date</th>
                                            <th>Salary</th>
                                        </tr>
                                    </tfoot>-->
                                    <tbody>
                                    <{foreach item=v from=$datas}>
                                        <tr>
                                            <td><{$v.buiness_name}></td>
                                            <td><{$v.number}></td>
                                            <td><{$v.price}></td>
                                            <td><{$v.c_time|date_format:'%Y-%m-%d %H:%M:%S'}></td>
                                            <td><{if $v.status==1}><span class="label label-info font-weight-100">待开票</span><{elseif $v.status==2}><span class="label label-success font-weight-100">已开票</span><{elseif $v.status==3}><span class="label label-danger font-weight-100">已冲红</span><{/if}></td>
                                            <td><button  onclick="alert_qrcode('<{$v.number}>')" class="btn  btn-primary btn-rounded btn-xs img-responsive model_img sa-image" >查看二维码</button></td>
                                        </tr>
                                     <{/foreach}> 
                                    </tbody>
                                    
                                </table>
                              <div style="margin-top:20px">  <{$page_menu}> </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>	
        </div>
    </div>
    <!-- /Row -->
</div>


